package org.zs.aop04.Impl;

import org.springframework.stereotype.Service;
import org.zs.aop04.Calculator;

@Service
public class CalculatorImpl implements Calculator {

    @Override
    public int add(int a, int b) {
        System.out.println("++++++++++++++");
        return a + b;
    }

    @Override
    public int sub(int a, int b) {
        System.out.println("-----------------");
        return a - b;
    }

    @Override
    public int mul(int a, int b) {
        System.out.println("**************************");
        return a * b;
    }

    @Override
    public int div(int a, int b) {
        System.out.println("////////////////");
        return a / b;
    }
}
